/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package banco;

import DAO.Usuario;
import com.mysql.jdbc.Statement;
import java.util.ArrayList;

/**
 *
 * @author Joao
 */
public class EncargoDAO {
 
    private ConexaoBD conexao;
    ArrayList<Usuario> usuarios = new ArrayList<Usuario>();
    public Statement statement;

    public EncargoDAO(ConexaoBD conexao) {
        this.conexao = conexao;
    }
    
    public void setEncargo(String ch, String disciplinas, String semestre, String cod_disciplina, String professor, String curso){
        
         String SQL_string = "INSERT INTO encargos (Professor_RG, disciplina, cod_disciplina, semestre, carga_horaria, curso) VALUES ('" + professor + "'," + "'" + cod_disciplina + "'," + "'" + semestre + "'," + "'" + disciplinas + "'," + "'" + ch + "'," + "'" +  curso + "'" + ")";
         
         conexao.execute(SQL_string);
    }
}
